//
//  DetailOrderCell.m
//  GoBigMarket
//
//  Created by 李真 on 16/8/24.
//  Copyright © 2016年 legend. All rights reserved.
//

#import "DetailOrderCell.h"

@implementation DetailOrderCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setModel:(OrdersProductModel *)model{
    if (_model != model) {
        _model = model;
    }
    
    NSURL *picUrl = [NSURL URLWithString:[NSString stringWithFormat: @"%@%@",ReleaseORDebug,_model.ThumbnailsUrl]];
    [self.imageView sd_setImageWithURL:picUrl placeholderImage:[UIImage imageNamed:@"未上传图片"]];
    self.nameLabel.text = _model.ProductName;
    self.aboutLabel.text = [NSString stringWithFormat:@"%@件",_model.Quantity];
}
@end
